package vcp.views;

import java.awt.event.ActionListener;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JOptionPane;

import vcp.common.AbstractView;
import vcp.common.IView;
import vcp.gui.forms.SaveParkingForm;
import vcp.gui.forms.secure.CustomerContactForm;

public class SaveParkingView extends AbstractView implements Observer,IView {
	private SaveParkingForm saveParkingForm;

	public SaveParkingView(){
    	saveParkingForm = new SaveParkingForm();
    }
	@Override
	public void addController(Object obj) {
		saveParkingForm.getBtnSaveParking().addActionListener((ActionListener)obj);
		
		//customerContactForm.getBtnSend().setActionCommand("CustomerContact");
		
	}

	@Override
	public void update(Observable arg0, Object arg1) {
		// TODO Auto-generated method stub
		
	}
	
/*
    CustomerContactForm  customerContactForm;
    public CustomerContactView(){
    	customerContactForm = new CustomerContactForm();
    }
	@Override
	public void addController(Object obj) {
		
	}

	public CustomerContactForm getCustomerContactForm() {
		return customerContactForm;
	}
	public void setCustomerContactForm(CustomerContactForm customerContactForm) {
		this.customerContactForm = customerContactForm;
	}
	@Override
	public void update(Observable arg0, Object arg) {
		JOptionPane.showMessageDialog(null,
			    "message sent to "+arg);				
	}

}
*/

}
